//
//  Fraction.h
//  7.5homework
//
//  Created by dllo on 16/7/5.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject
@property (nonatomic,assign)NSInteger numerator;
@property (nonatomic,assign)NSInteger deniminator;
- (instancetype)initWithNumerator:(NSInteger)numerator
                      deniminator:(NSInteger)deniminator;
+ (instancetype)fractionWithNumerator:(NSInteger)numerator
                          deniminator:(NSInteger)deniminator;
- (NSString *)description;
- (NSInteger)gcdFirstNumber:(NSInteger)firstNumber
               secondNumber:(NSInteger)secondNumber;
- (void)reduce;
- (Fraction *)addFraction:(Fraction *)anotherFration;
- (Fraction *)delFraction:(Fraction *)anotherFration;
- (Fraction *)mulFraction:(Fraction *)anotherFration;
- (Fraction *)divFraction:(Fraction *)anotherFration;
- (void)comFraction:(Fraction *)anotherFration;

@end
